package com.molichuxing.services.infrastructure.bean;

import com.molichuxing.framework.bean.RootBean;

import java.time.LocalDateTime;

public class MotStateLogBean extends RootBean {

    private String emsComeno;
    /**
     *  id
     */
    private Integer id;

    /**
     * 订单ID order_id
     */
    private String orderId;

    /**
     * 订单状态 order_state
     */
    private Integer orderState;

    /**
     * 订单ID cancel_reason
     */
    private String cancelReason;

    /**
     * 邮寄地址 mail_address
     */
    private String mailAddress;

    /**
     * 合格证 insure_prove_url
     */
    private String insureProveUrl;

    /**
     * 返回结果编码：
 0：数据库操作错误，请联系客服
 1：预约成功，返回JSON格式
 2：余额不足，请联系客服
 4：参数长度有误
 7：该key不存在
 8：Key密钥格式错误！
 9：请不要提交非法请求
 -1：接口调用出错，请联系客服 result_code
     */
    private Integer resultCode;

    /**
     * 创建时间 gmt_create
     */
    private LocalDateTime gmtCreate;

    /**
     * 修改时间 gmt_modified
     */
    private LocalDateTime gmtModified;

    /**
     * third_mot_state_log
     */
    private static final long serialVersionUID = 1L;

    /**
     * 
     * @date 2020-05-13 16:56:00
     * @return id 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     * @date 2020-05-13 16:56:00
     * @param id 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 订单ID
     * @date 2020-05-13 16:56:00
     * @return order_id 订单ID
     */
    public String getOrderId() {
        return orderId;
    }

    /**
     * 订单ID
     * @date 2020-05-13 16:56:00
     * @param orderId 订单ID
     */
    public void setOrderId(String orderId) {
        this.orderId = orderId == null ? null : orderId.trim();
    }

    /**
     * 订单状态
     * @date 2020-05-13 16:56:00
     * @return order_state 订单状态
     */
    public Integer getOrderState() {
        return orderState;
    }

    /**
     * 订单状态
     * @date 2020-05-13 16:56:00
     * @param orderState 订单状态
     */
    public void setOrderState(Integer orderState) {
        this.orderState = orderState;
    }

    /**
     * 订单ID
     * @date 2020-05-13 16:56:00
     * @return cancel_reason 订单ID
     */
    public String getCancelReason() {
        return cancelReason;
    }

    /**
     * 订单ID
     * @date 2020-05-13 16:56:00
     * @param cancelReason 订单ID
     */
    public void setCancelReason(String cancelReason) {
        this.cancelReason = cancelReason == null ? null : cancelReason.trim();
    }

    /**
     * 邮寄地址
     * @date 2020-05-13 16:56:00
     * @return mail_address 邮寄地址
     */
    public String getMailAddress() {
        return mailAddress;
    }

    /**
     * 邮寄地址
     * @date 2020-05-13 16:56:00
     * @param mailAddress 邮寄地址
     */
    public void setMailAddress(String mailAddress) {
        this.mailAddress = mailAddress == null ? null : mailAddress.trim();
    }

    /**
     * 合格证
     * @date 2020-05-13 16:56:00
     * @return insure_prove_url 合格证
     */
    public String getInsureProveUrl() {
        return insureProveUrl;
    }

    /**
     * 合格证
     * @date 2020-05-13 16:56:00
     * @param insureProveUrl 合格证
     */
    public void setInsureProveUrl(String insureProveUrl) {
        this.insureProveUrl = insureProveUrl == null ? null : insureProveUrl.trim();
    }

    /**
     * 返回结果编码：
 0：数据库操作错误，请联系客服
 1：预约成功，返回JSON格式
 2：余额不足，请联系客服
 4：参数长度有误
 7：该key不存在
 8：Key密钥格式错误！
 9：请不要提交非法请求
 -1：接口调用出错，请联系客服
     * @date 2020-05-13 16:56:00
     * @return result_code 返回结果编码：
 0：数据库操作错误，请联系客服
 1：预约成功，返回JSON格式
 2：余额不足，请联系客服
 4：参数长度有误
 7：该key不存在
 8：Key密钥格式错误！
 9：请不要提交非法请求
 -1：接口调用出错，请联系客服
     */
    public Integer getResultCode() {
        return resultCode;
    }

    /**
     * 返回结果编码：
 0：数据库操作错误，请联系客服
 1：预约成功，返回JSON格式
 2：余额不足，请联系客服
 4：参数长度有误
 7：该key不存在
 8：Key密钥格式错误！
 9：请不要提交非法请求
 -1：接口调用出错，请联系客服
     * @date 2020-05-13 16:56:00
     * @param resultCode 返回结果编码：
 0：数据库操作错误，请联系客服
 1：预约成功，返回JSON格式
 2：余额不足，请联系客服
 4：参数长度有误
 7：该key不存在
 8：Key密钥格式错误！
 9：请不要提交非法请求
 -1：接口调用出错，请联系客服
     */
    public void setResultCode(Integer resultCode) {
        this.resultCode = resultCode;
    }


    /**
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MotStateLogBean other = (MotStateLogBean) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getOrderState() == null ? other.getOrderState() == null : this.getOrderState().equals(other.getOrderState()))
            && (this.getCancelReason() == null ? other.getCancelReason() == null : this.getCancelReason().equals(other.getCancelReason()))
            && (this.getMailAddress() == null ? other.getMailAddress() == null : this.getMailAddress().equals(other.getMailAddress()))
            && (this.getInsureProveUrl() == null ? other.getInsureProveUrl() == null : this.getInsureProveUrl().equals(other.getInsureProveUrl()))
            && (this.getResultCode() == null ? other.getResultCode() == null : this.getResultCode().equals(other.getResultCode()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getEmsComeno() == null ? other.getEmsComeno() == null : this.getEmsComeno().equals(other.getEmsComeno()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()));
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getOrderState() == null) ? 0 : getOrderState().hashCode());
        result = prime * result + ((getCancelReason() == null) ? 0 : getCancelReason().hashCode());
        result = prime * result + ((getMailAddress() == null) ? 0 : getMailAddress().hashCode());
        result = prime * result + ((getInsureProveUrl() == null) ? 0 : getInsureProveUrl().hashCode());
        result = prime * result + ((getResultCode() == null) ? 0 : getResultCode().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getEmsComeno() == null) ? 0 : getEmsComeno().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        return result;
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderId=").append(orderId);
        sb.append(", orderState=").append(orderState);
        sb.append(", cancelReason=").append(cancelReason);
        sb.append(", mailAddress=").append(mailAddress);
        sb.append(", insureProveUrl=").append(insureProveUrl);
        sb.append(", resultCode=").append(resultCode);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    public String getEmsComeno() {
        return emsComeno;
    }

    public void setEmsComeno(String emsComeno) {
        this.emsComeno = emsComeno;
    }
}